Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Scala.js 1.16.0. #20294

Merged
merged 5 commits into from
May 6, 2024
Merged

Upgrade to Scala.js 1.16.0. #20294

merged 5 commits into from
May 6, 2024

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Apr 29, 2024

The commit messages mention the upstream commits that were forward ported.

Tests come for free in the "Upgrade to Scala.js 1.x.0." commits.

… this type in JS super call.

When doing a super call to a method of a path-dependent JS super
class, the `superClass.typeRef` is only valid as seen from the
super class' thisType. We need to rebase it with `asSeenFrom` to
be in the context of the current class' thisType.

Forward port of the upstream commit
scala-js/scala-js@3cef9d0
…n JS ctors.

Previously, we moved all statements in the constructors after the
super constructor call. However, it turns out that there are
statements that must be kept before, notably local `val`s
generated for default arguments to the super constructor.

We now keep statements where they are by default. We only move
statements of the form `C.this.field = ident;`, which are the
only ones that require access to `this`.

Forward port of the upstream commit
scala-js/scala-js@2e4594f
Code changes are forward ports of the following refactorings:

* Remove the parameters to StoreModule IR nodes.
  scala-js/scala-js@659d518
* Refactor: Make FieldName a composite of ClassName and SimpleFieldName.
  scala-js/scala-js@723663b
@sjrd sjrd requested review from mbovel and removed request for bishabosha May 2, 2024 12:20
@sjrd sjrd assigned mbovel and unassigned bishabosha May 2, 2024
@sjrd
Copy link
Member Author

sjrd commented May 2, 2024

Reassigning to @mbovel because bishabosha is under water already.

@sjrd sjrd merged commit 827df03 into scala:main May 6, 2024
19 checks passed
@sjrd sjrd deleted the scalajs-1.16.0 branch May 6, 2024 10:58
@Kordyjan Kordyjan added this to the 3.5.0 milestone May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants